﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Threading;

namespace LCZpsw
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Generator_Click(object sender, EventArgs e)
        {
            //ThreadStart streadStart = new ThreadStart(Gen);
            Gen();
        }
        private void Gen()
        {
            string FilePath = ".\\d.txt";
            //string str = CurrentTZ().ToString();

            using (StreamWriter s = File.AppendText(FilePath))
            {
                for (long i = 1000000000; i < 9999999999; i++)
                {
                    s.WriteLine(i.ToString() + Environment.NewLine);
                }

            }
        }

        private void Pause_Click(object sender, EventArgs e)
        {
            
            if (Thread.CurrentThread.ThreadState == ThreadState.Running)
            {
                Thread.CurrentThread.Suspend();
            }
        }
    }
}
